package model

import (
	"github.com/jinzhu/gorm"
)

type Music struct {
	gorm.Model
	UUID       string `gorm:"column:uuid;type:varchar(36);not null;unique_index"` // UUID v4
	Title      string `gorm:"column:title;type:text;not null"`
	Properties string `gorm:"column:properties;type:text;not null"`
	ThumbUrl   string `gorm:"column:thumb_url;type:text;not null"`
}

// 指定表名称
func (Music) TableName() string {
	return "music"
}
